package com.aiit.carinsurance2.service.impl;


import com.aiit.carinsurance2.dao.CarDao;
import com.aiit.carinsurance2.pojo.Car;
import com.aiit.carinsurance2.pojo.Choosecar;
import com.aiit.carinsurance2.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hfy
 * @since 2022-05-06
 */
@Service
public class CarServiceImpl implements CarService {

    @Autowired
    private CarDao carDao;
    @Override
    public int addcarinfo(Car car) {
        return carDao.addcarinfo(car);
    }

    @Override
    public int addbasiscarinfo(Choosecar choosecar) {
        return carDao.addbasiscarinfo(choosecar);
    }
    @Override
    public Car querybyuid(Integer uid) {
        return carDao.querybyuid(uid);
    }
}
